package com.java2207.group1.mapper;

import com.java2207.group1.bo.MonthBo;
import com.java2207.group1.pojo.Expenditure;

import java.util.List;
import java.util.Map;

/**
 * @author HuiCL
 * @version 1.0
 * @date 2022/7/25 18:02
 */
public interface ExpenditureMapper {

    int addExpenditure(Expenditure expenditure);

    int updateExpenditure(Expenditure expenditure);

    int deleteExpenditureById(int id);

    int batchRemoveExpenditure(List<Integer> list);

    List<Expenditure> expenditurePageData(Map<String, Object> params);

    List<Expenditure> selectDataThatMeetConditions(Expenditure expenditure);

    @Deprecated
    List<MonthBo> queryExpenditureFromYear(String year);


}
